package com.code.softeem.jc;

public class A {
    private int id;
    private String name;

    public A() {
        System.out.println("创建a的对象");
    }

    public A(int id, String name) {
        System.out.println("有参构造函数");
        this.id = id;
        this.name = name;
    }

    public void eat(){
        System.out.println("吃好吃的");
    }
}
